import { Entity, PrimaryUuid, Code, Title, Address, Mobile, Boolean, MemberId } from "@sker/core";


@Entity({
    name: 'kd_invoice'
})
export class KdInvoice {

    @PrimaryUuid()
    id: string;

    @MemberId({ comment: '会员' })
    member_id: string;

    @Code({ comment: '抬头类型' })
    type: string;

    @Title({ comment: '发票抬头' })
    title: string;

    @Code({ comment: '纳税人识别号' })
    sn: string;

    @Address({ comment: '企业地址', nullable: true })
    address: string;

    @Mobile({ comment: '企业电话', nullable: true })
    mobile: string;

    @Code({ comment: '开户行', nullable: true })
    bank: string;

    @Code({ comment: '银行账号', nullable: true })
    card: string;

    @Boolean({ comment: '是否默认', default: false })
    is_default: string;
}